<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JSX表达式小结</title>
</head>
<script src="./js/react.development.js"></script>
<script src="./js/react-dom.development.js"></script>
<!-- 引入 babel  将jsx语法 转换为 js语法 -->
<script src="./js/babel.min.js"></script>
<body>
    <div id="root"></div>

</body>
<script type="text/babel">
    let fn1 = ()=>{
        return [1,2,3555]
    }
        let obj = {
        name:"laow"
    }
    let vdom = <div>
        <h1>{123}</h1>
        <h1>{"哈哈"}</h1>
        <h1>{null}</h1>
        <h1>{undefined}</h1>
        <h1>{[1,2,3,4,5,6]}</h1>
        {/* <h1>{{name:"laowa"}}</h1>*/}
        <h1>{obj.name}</h1>
        <h1>{Math.ceil(3.666)}</h1>
        <h1>{fn1()}</h1>
        </div>
        ReactDOM.render(vdom,document.getElementById('root'))

</script>
</html>